package com.abc.recycling.repository;

import com.abc.recycling.model.NotificationTemplate;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Optional;

@Repository
public interface NotificationTemplateRepository extends JpaRepository<NotificationTemplate, Long> {
    Optional<NotificationTemplate> findByCode(String code);
    List<NotificationTemplate> findByType(String type);
    List<NotificationTemplate> findByStatus(Integer status);
    boolean existsByCode(String code);
} 